import { AutoIncrementId, Code, Cover, CreateDate, Digdit, PrimaryUuid, UpdateDate, Uuid } from "../utils";
import { Entity } from "typeorm";

@Entity({
    name: 'fuli_recommend'
})
export class FuliRecommendEntity {
    @PrimaryUuid()
    id: string;

    @AutoIncrementId()
    rec_id: number;

    @Code()
    position: string;

    @Code()
    type: string;

    @Uuid()
    resource_id: string;

    @Cover()
    cover: string;

    @Cover({default: ''})
    title: string;

    @Digdit({ default: 0 })
    displayorder: number;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;

}